package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserCreatorInfo;
import com.sc.nft.entity.dto.AdminPhonePageDTO;
import com.sc.nft.entity.dto.HomeBrandIslandDTO;
import com.sc.nft.entity.vo.*;
import com.sc.nft.entity.vo.ecology.adminDaoPhoneVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (user_creator_info)数据Mapper
 *
 * @author Sun
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2022-05-30 15:17:11
 */
@Mapper
public interface UserCreatorInfoMapper extends BaseMapper<UserCreatorInfo> {

    Page<UserCreatorListVO> getUserCreatorList(Page page);

    Page<GetUserApplyCreateDaoVO> getUserApplyCreateDaoVO(Page page, @Param("userId") Long userId);

    Page<GetUserApplyCreateDaoVO> userJoinGroup(Page page, @Param("userId") Long userId);

    /**
     * 获取一定展示的一条数据
     *
     * @return
     */
    GetUserApplyCreateDaoVO getCertainlyShowData();

    /**
     * 品牌岛
     *
     * @return
     */
    List<HomeBrandIslandVO> homeBrandIsland();

    /**
     * @param page
     * @return
     */
    Page<HomeBrandIslandVO> homeBrandIslandPage(Page page, @Param("homeBrandIslandDTO") HomeBrandIslandDTO homeBrandIslandDTO);

    GetDaoByIdVO getDaoById(@Param("id") Long id);

    /**
     * 获取品牌的Dao模块
     *
     * @return
     */
    GetDaoByIdVO getCertainlyShowDao();

    /**
     * 后台管理获取dao列表
     *
     * @param page
     * @param name
     * @return
     */
    Page<AdminUserCreatorInfoVO> getAdminPageList(Page page, @Param("name") String name, @Param("userTel") String userTel, @Param("filterMeta") Boolean filterMeta);

    /**
     * 获取所有dao
     *
     * @return
     */
    List<AdminUserCreatorInfoAllDao> getAll();

    AdminGetByIdVO adminGetById(@Param("id") Long id);

    /**
     * 根据藏品id获取他下面在售的商品
     *
     * @param id
     * @return
     */
    List<GetWhatHeSSellingUnderTheCollectionVO> getWhatHeSSellingUnderTheCollectionId(@Param("collectionId") Long id);

    /**
     * 获取简单的dao列表
     *
     * @param page
     * @param daoName
     * @return
     */
    Page<SimpleDaoPageVO> getSimpleDaoPage(Page page, @Param("daoName") String daoName);


    /**
     * 获取简单的dao列表
     *
     * @param page
     * @param daoName
     * @return
     */
    Page<SimpleDaoPageVO> getSimpleOnlineTimeDaoPage(Page page, @Param("daoName") String daoName);

    /**
     * 获取用户所属的网体
     *
     * @param userId
     * @return
     */
    Long theNetworkToWhichTheUserBelongs(@Param("userId") Long userId);

    /**
     * 获取所有dao
     * @return
     */
    List<AdminUserCreatorInfoAllDao> getAllByStatus();


    Page<AdminUserCreatorInfoPhoneVO> getAdminPhonePage(Page page, @Param("name") String name, @Param("phoneNo") String phoneNo,@Param("filterMeta") Boolean filterMeta);


    /**
     * 根据daoId 查询手机号
     * @param id
     * @return
     */
    adminDaoPhoneVO adminPhoneById(Integer id);

    /**
     * 获取用户所属的网体
     *
     * @param userId
     * @return
     */
    List<Long> getUserBelongingToDao(@Param("userId") Long userId);



}
